package com.lc.luzhengtang.conn;

import android.util.Log;

import com.google.gson.Gson;
import com.lc.luzhengtang.bean.CommenCollectBean;
import com.zcx.helper.http.AsyCallBack;
import com.zcx.helper.http.note.HttpInlet;

import org.json.JSONObject;

/**
 * Created by Administrator on 2017/4/17.
 */
@HttpInlet(Conn.SHOP_ADD)
public class ConnShopCollect extends BaseAsyPost<CommenCollectBean> {

    public String member_id, goods_id;


    public ConnShopCollect(String member_id, String goods_id, AsyCallBack<CommenCollectBean> asyCallBack) {
        super(asyCallBack);
        this.member_id = member_id;
        this.goods_id = goods_id;


    }

    @Override
    protected CommenCollectBean parser(JSONObject object) throws Exception {
        Log.d(object.toString(), "aaaaaaaaaaaaaaaaa");

        TOAST = object.optString("message");

        Gson gson = new Gson();
        CommenCollectBean loginBean = new CommenCollectBean();
        loginBean = gson.fromJson(object.toString(), CommenCollectBean.class);

        return loginBean;

    }
}



